package com.yj.springbootsecuritydemo01.pojo;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class UserDetail extends User {


    private UserParam userParam;

    public UserDetail(UserParam userParam,Collection<? extends GrantedAuthority> authorities) {
        super(userParam.getUsername(), userParam.getPassword(), authorities);
        this.userParam = userParam;
    }
}
